package com.inight.ojcodesandbox.security;

import java.security.Permission;

/**
 * 自己写一个安全管理器, 用于管理权限
 */
public class DefaultSecurityManager extends SecurityManager{

    @Override
    public void checkPermission(Permission perm) {
        super.checkPermission(perm);
        System.out.println("检查权限: " + perm.getName());
    }
}
